home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
SWDOS12
/
ERASE.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-02-10
|
1KB
|
34 lines
;******************************************************************
;* ERASE.ASM *
;* Source file for SoftWeyr enhanced DOS toolbox *
;* version 1.1 *
;* Copyright (c) by SoftWeyr,1994 *
;******************************************************************
MODEL TPASCAL
LOCALS
.DATA
EXTRN DosError :word
.CODE
Public EraseFile
EXTRN Asciiz:Far
EraseFile Proc Far File:Dword
;Procedure EraseFile(FileName:String);
LOCAL AName:Byte:80=LSIZE
Push DS
;Load string address
LDS SI,File
LEA DI,AName
Call Asciiz
LEA DX,AName
PUSH SS
POP DS
mov ah,41H
Int 21h
Pop ds
jc @@Error
xor ax,ax
@@Error: Mov DosError,ax
Ret
endp
end